/*
* Copyright 2023 NXP
* NXP Confidential and Proprietary. This software is owned or controlled by NXP and may only be used strictly in
* accordance with the applicable license terms. By expressly accepting such terms or by downloading, installing,
* activating and/or otherwise using the software, you are agreeing that you have read, and that you agree to
* comply with and are bound by, such license terms.  If you do not agree to be bound by the applicable license
* terms, then you may not retain, install, activate or otherwise use the software.
*/

#include "lvgl.h"
#include <stdio.h>
#include "gui_guider.h"
#include "events_init.h"
#include "widgets_init.h"
#include "custom.h"



int Trip_digital_clock_1_min_value = 05;
int Trip_digital_clock_1_hour_value = 8;
int Trip_digital_clock_1_sec_value = 50;
void setup_scr_Trip(lv_ui *ui)
{
	//Write codes Trip
	ui->Trip = lv_obj_create(NULL);
	lv_obj_set_size(ui->Trip, 130, 162);
	lv_obj_set_scrollbar_mode(ui->Trip, LV_SCROLLBAR_MODE_OFF);

	//Write style for Trip, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_bg_opa(ui->Trip, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_bg_color(ui->Trip, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write codes Trip_digital_clock_1
	static bool Trip_digital_clock_1_timer_enabled = false;
	char time_str[20]={0};
	sprintf(time_str, "%d:%02d", Trip_digital_clock_1_hour_value, Trip_digital_clock_1_min_value);
	ui->Trip_digital_clock_1 = lv_dclock_create(ui->Trip, time_str);
	if (!Trip_digital_clock_1_timer_enabled) {
		lv_timer_create(Trip_digital_clock_1_timer, 1000, NULL);
		Trip_digital_clock_1_timer_enabled = true;
	}
	lv_obj_set_pos(ui->Trip_digital_clock_1, 48, -2);
	lv_obj_set_size(ui->Trip_digital_clock_1, 33, 17);
	lv_obj_set_scrollbar_mode(ui->Trip_digital_clock_1, LV_SCROLLBAR_MODE_OFF);

	//Write style for Trip_digital_clock_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_radius(ui->Trip_digital_clock_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_color(ui->Trip_digital_clock_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_font(ui->Trip_digital_clock_1, &lv_font_montserratMedium_11, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_letter_space(ui->Trip_digital_clock_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_align(ui->Trip_digital_clock_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_bg_opa(ui->Trip_digital_clock_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_bg_color(ui->Trip_digital_clock_1, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_top(ui->Trip_digital_clock_1, 7, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_right(ui->Trip_digital_clock_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_bottom(ui->Trip_digital_clock_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_left(ui->Trip_digital_clock_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_width(ui->Trip_digital_clock_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write codes Trip_power
	ui->Trip_power = lv_textprogress_create(ui->Trip);
	lv_textprogress_set_range_value(ui->Trip_power, 0, 100, 0, 0);
	lv_textprogress_set_decimal(ui->Trip_power, 0);
	lv_textprogress_set_value(ui->Trip_power, 100);
	lv_obj_set_pos(ui->Trip_power, 90, -2);
	lv_obj_set_size(ui->Trip_power, 38, 21);
	lv_obj_set_scrollbar_mode(ui->Trip_power, LV_SCROLLBAR_MODE_OFF);

	//Write style for Trip_power, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_radius(ui->Trip_power, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_color(ui->Trip_power, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_font(ui->Trip_power, &lv_font_montserratMedium_10, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_letter_space(ui->Trip_power, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_align(ui->Trip_power, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_bg_opa(ui->Trip_power, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_bg_color(ui->Trip_power, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_top(ui->Trip_power, 8, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_right(ui->Trip_power, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_bottom(ui->Trip_power, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_left(ui->Trip_power, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_width(ui->Trip_power, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write codes Trip_speed
	ui->Trip_speed = lv_label_create(ui->Trip);
	lv_label_set_text(ui->Trip_speed, "0.0\n");
	lv_label_set_long_mode(ui->Trip_speed, LV_LABEL_LONG_WRAP);
	lv_obj_set_pos(ui->Trip_speed, 32, 28);
	lv_obj_set_size(ui->Trip_speed, 65, 15);
	lv_obj_set_scrollbar_mode(ui->Trip_speed, LV_SCROLLBAR_MODE_OFF);

	//Write style for Trip_speed, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_border_width(ui->Trip_speed, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_radius(ui->Trip_speed, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_color(ui->Trip_speed, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_font(ui->Trip_speed, &lv_font_montserratMedium_17, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_letter_space(ui->Trip_speed, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_line_space(ui->Trip_speed, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_align(ui->Trip_speed, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_bg_opa(ui->Trip_speed, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_top(ui->Trip_speed, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_right(ui->Trip_speed, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_bottom(ui->Trip_speed, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_left(ui->Trip_speed, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_width(ui->Trip_speed, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write codes Trip_label_1
	ui->Trip_label_1 = lv_label_create(ui->Trip);
	lv_label_set_text(ui->Trip_label_1, "km/h");
	lv_label_set_long_mode(ui->Trip_label_1, LV_LABEL_LONG_WRAP);
	lv_obj_set_pos(ui->Trip_label_1, 46, 49);
	lv_obj_set_size(ui->Trip_label_1, 36, 12);
	lv_obj_set_scrollbar_mode(ui->Trip_label_1, LV_SCROLLBAR_MODE_OFF);

	//Write style for Trip_label_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_border_width(ui->Trip_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_radius(ui->Trip_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_color(ui->Trip_label_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_font(ui->Trip_label_1, &lv_font_montserratMedium_10, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_letter_space(ui->Trip_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_line_space(ui->Trip_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_align(ui->Trip_label_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_bg_opa(ui->Trip_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_top(ui->Trip_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_right(ui->Trip_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_bottom(ui->Trip_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_left(ui->Trip_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_width(ui->Trip_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write codes Trip_avg_speed
	ui->Trip_avg_speed = lv_label_create(ui->Trip);
	lv_label_set_text(ui->Trip_avg_speed, "0.0km/h");
	lv_label_set_long_mode(ui->Trip_avg_speed, LV_LABEL_LONG_WRAP);
	lv_obj_set_pos(ui->Trip_avg_speed, 10, 74);
	lv_obj_set_size(ui->Trip_avg_speed, 50, 13);
	lv_obj_set_scrollbar_mode(ui->Trip_avg_speed, LV_SCROLLBAR_MODE_OFF);

	//Write style for Trip_avg_speed, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_border_width(ui->Trip_avg_speed, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_radius(ui->Trip_avg_speed, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_color(ui->Trip_avg_speed, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_font(ui->Trip_avg_speed, &lv_font_montserratMedium_10, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_letter_space(ui->Trip_avg_speed, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_line_space(ui->Trip_avg_speed, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_align(ui->Trip_avg_speed, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_bg_opa(ui->Trip_avg_speed, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_top(ui->Trip_avg_speed, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_right(ui->Trip_avg_speed, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_bottom(ui->Trip_avg_speed, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_left(ui->Trip_avg_speed, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_width(ui->Trip_avg_speed, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write codes Trip_km
	ui->Trip_km = lv_label_create(ui->Trip);
	lv_label_set_text(ui->Trip_km, "0 km");
	lv_label_set_long_mode(ui->Trip_km, LV_LABEL_LONG_WRAP);
	lv_obj_set_pos(ui->Trip_km, 69, 74);
	lv_obj_set_size(ui->Trip_km, 50, 13);
	lv_obj_set_scrollbar_mode(ui->Trip_km, LV_SCROLLBAR_MODE_OFF);

	//Write style for Trip_km, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_border_width(ui->Trip_km, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_radius(ui->Trip_km, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_color(ui->Trip_km, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_font(ui->Trip_km, &lv_font_montserratMedium_10, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_letter_space(ui->Trip_km, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_line_space(ui->Trip_km, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_align(ui->Trip_km, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_bg_opa(ui->Trip_km, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_top(ui->Trip_km, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_right(ui->Trip_km, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_bottom(ui->Trip_km, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_left(ui->Trip_km, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_width(ui->Trip_km, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write codes Trip_label_2
	ui->Trip_label_2 = lv_label_create(ui->Trip);
	lv_label_set_text(ui->Trip_label_2, "AVG");
	lv_label_set_long_mode(ui->Trip_label_2, LV_LABEL_LONG_WRAP);
	lv_obj_set_pos(ui->Trip_label_2, 17, 88);
	lv_obj_set_size(ui->Trip_label_2, 36, 12);
	lv_obj_set_scrollbar_mode(ui->Trip_label_2, LV_SCROLLBAR_MODE_OFF);

	//Write style for Trip_label_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_border_width(ui->Trip_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_radius(ui->Trip_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_color(ui->Trip_label_2, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_font(ui->Trip_label_2, &lv_font_montserratMedium_10, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_letter_space(ui->Trip_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_line_space(ui->Trip_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_align(ui->Trip_label_2, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_bg_opa(ui->Trip_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_top(ui->Trip_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_right(ui->Trip_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_bottom(ui->Trip_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_left(ui->Trip_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_width(ui->Trip_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write codes Trip_label_3
	ui->Trip_label_3 = lv_label_create(ui->Trip);
	lv_label_set_text(ui->Trip_label_3, "Trip");
	lv_label_set_long_mode(ui->Trip_label_3, LV_LABEL_LONG_WRAP);
	lv_obj_set_pos(ui->Trip_label_3, 76, 88);
	lv_obj_set_size(ui->Trip_label_3, 36, 12);
	lv_obj_set_scrollbar_mode(ui->Trip_label_3, LV_SCROLLBAR_MODE_OFF);

	//Write style for Trip_label_3, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_border_width(ui->Trip_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_radius(ui->Trip_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_color(ui->Trip_label_3, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_font(ui->Trip_label_3, &lv_font_montserratMedium_10, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_letter_space(ui->Trip_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_line_space(ui->Trip_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_align(ui->Trip_label_3, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_bg_opa(ui->Trip_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_top(ui->Trip_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_right(ui->Trip_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_bottom(ui->Trip_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_left(ui->Trip_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_width(ui->Trip_label_3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write codes Trip_temp
	ui->Trip_temp = lv_label_create(ui->Trip);
	lv_label_set_text(ui->Trip_temp, " ");
	lv_label_set_long_mode(ui->Trip_temp, LV_LABEL_LONG_WRAP);
	lv_obj_set_pos(ui->Trip_temp, 10, 116);
	lv_obj_set_size(ui->Trip_temp, 50, 13);
	lv_obj_set_scrollbar_mode(ui->Trip_temp, LV_SCROLLBAR_MODE_OFF);

	//Write style for Trip_temp, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_border_width(ui->Trip_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_radius(ui->Trip_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_color(ui->Trip_temp, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_font(ui->Trip_temp, &lv_font_montserratMedium_10, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_letter_space(ui->Trip_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_line_space(ui->Trip_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_align(ui->Trip_temp, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_bg_opa(ui->Trip_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_top(ui->Trip_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_right(ui->Trip_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_bottom(ui->Trip_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_left(ui->Trip_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_width(ui->Trip_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write codes Trip_trip_time
	ui->Trip_trip_time = lv_label_create(ui->Trip);
	lv_label_set_text(ui->Trip_trip_time, "00:00:00");
	lv_label_set_long_mode(ui->Trip_trip_time, LV_LABEL_LONG_WRAP);
	lv_obj_set_pos(ui->Trip_trip_time, 69, 116);
	lv_obj_set_size(ui->Trip_trip_time, 50, 13);
	lv_obj_set_scrollbar_mode(ui->Trip_trip_time, LV_SCROLLBAR_MODE_OFF);

	//Write style for Trip_trip_time, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_border_width(ui->Trip_trip_time, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_radius(ui->Trip_trip_time, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_color(ui->Trip_trip_time, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_font(ui->Trip_trip_time, &lv_font_montserratMedium_10, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_letter_space(ui->Trip_trip_time, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_line_space(ui->Trip_trip_time, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_align(ui->Trip_trip_time, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_bg_opa(ui->Trip_trip_time, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_top(ui->Trip_trip_time, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_right(ui->Trip_trip_time, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_bottom(ui->Trip_trip_time, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_left(ui->Trip_trip_time, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_width(ui->Trip_trip_time, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write codes Trip_label_6
	ui->Trip_label_6 = lv_label_create(ui->Trip);
	lv_label_set_text(ui->Trip_label_6, "Temp");
	lv_label_set_long_mode(ui->Trip_label_6, LV_LABEL_LONG_WRAP);
	lv_obj_set_pos(ui->Trip_label_6, 17, 129);
	lv_obj_set_size(ui->Trip_label_6, 36, 12);
	lv_obj_set_scrollbar_mode(ui->Trip_label_6, LV_SCROLLBAR_MODE_OFF);

	//Write style for Trip_label_6, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_border_width(ui->Trip_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_radius(ui->Trip_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_color(ui->Trip_label_6, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_font(ui->Trip_label_6, &lv_font_montserratMedium_10, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_letter_space(ui->Trip_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_line_space(ui->Trip_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_align(ui->Trip_label_6, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_bg_opa(ui->Trip_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_top(ui->Trip_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_right(ui->Trip_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_bottom(ui->Trip_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_left(ui->Trip_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_width(ui->Trip_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write codes Trip_label_7
	ui->Trip_label_7 = lv_label_create(ui->Trip);
	lv_label_set_text(ui->Trip_label_7, "Time");
	lv_label_set_long_mode(ui->Trip_label_7, LV_LABEL_LONG_WRAP);
	lv_obj_set_pos(ui->Trip_label_7, 76, 129);
	lv_obj_set_size(ui->Trip_label_7, 36, 12);
	lv_obj_set_scrollbar_mode(ui->Trip_label_7, LV_SCROLLBAR_MODE_OFF);

	//Write style for Trip_label_7, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_border_width(ui->Trip_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_radius(ui->Trip_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_color(ui->Trip_label_7, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_font(ui->Trip_label_7, &lv_font_montserratMedium_10, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_letter_space(ui->Trip_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_line_space(ui->Trip_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_align(ui->Trip_label_7, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_bg_opa(ui->Trip_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_top(ui->Trip_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_right(ui->Trip_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_bottom(ui->Trip_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_left(ui->Trip_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_width(ui->Trip_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write codes Trip_back
	ui->Trip_back = lv_btn_create(ui->Trip);
	ui->Trip_back_label = lv_label_create(ui->Trip_back);
	lv_label_set_text(ui->Trip_back_label, "Back");
	lv_label_set_long_mode(ui->Trip_back_label, LV_LABEL_LONG_WRAP);
	lv_obj_align(ui->Trip_back_label, LV_ALIGN_CENTER, 0, 0);
	lv_obj_set_style_pad_all(ui->Trip_back, 0, LV_STATE_DEFAULT);
	lv_obj_set_pos(ui->Trip_back, 3, 141);
	lv_obj_set_size(ui->Trip_back, 65, 14);
	lv_obj_set_scrollbar_mode(ui->Trip_back, LV_SCROLLBAR_MODE_OFF);

	//Write style for Trip_back, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_bg_opa(ui->Trip_back, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_border_width(ui->Trip_back, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_radius(ui->Trip_back, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_width(ui->Trip_back, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_color(ui->Trip_back, lv_color_hex(0x2FDA64), LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_font(ui->Trip_back, &lv_font_montserratMedium_10, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_align(ui->Trip_back, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write codes Trip_start
	ui->Trip_start = lv_btn_create(ui->Trip);
	ui->Trip_start_label = lv_label_create(ui->Trip_start);
	lv_label_set_text(ui->Trip_start_label, "Start");
	lv_label_set_long_mode(ui->Trip_start_label, LV_LABEL_LONG_WRAP);
	lv_obj_align(ui->Trip_start_label, LV_ALIGN_CENTER, 0, 0);
	lv_obj_set_style_pad_all(ui->Trip_start, 0, LV_STATE_DEFAULT);
	lv_obj_set_pos(ui->Trip_start, 61, 141);
	lv_obj_set_size(ui->Trip_start, 65, 14);
	lv_obj_set_scrollbar_mode(ui->Trip_start, LV_SCROLLBAR_MODE_OFF);

	//Write style for Trip_start, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_bg_opa(ui->Trip_start, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_border_width(ui->Trip_start, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_radius(ui->Trip_start, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_width(ui->Trip_start, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_color(ui->Trip_start, lv_color_hex(0x2FDA64), LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_font(ui->Trip_start, &lv_font_montserratMedium_10, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_align(ui->Trip_start, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Write codes Trip_frame
	ui->Trip_frame = lv_label_create(ui->Trip);
	lv_label_set_text(ui->Trip_frame, "");
	lv_label_set_long_mode(ui->Trip_frame, LV_LABEL_LONG_WRAP);
	lv_obj_set_pos(ui->Trip_frame, 0, 0);
	lv_obj_set_size(ui->Trip_frame, 130, 162);
	lv_obj_set_scrollbar_mode(ui->Trip_frame, LV_SCROLLBAR_MODE_OFF);

	//Write style for Trip_frame, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
	lv_obj_set_style_border_width(ui->Trip_frame, 3, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_border_opa(ui->Trip_frame, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_border_color(ui->Trip_frame, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_radius(ui->Trip_frame, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_color(ui->Trip_frame, lv_color_hex(0x2FDA64), LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_font(ui->Trip_frame, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_letter_space(ui->Trip_frame, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_line_space(ui->Trip_frame, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_text_align(ui->Trip_frame, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_bg_opa(ui->Trip_frame, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_top(ui->Trip_frame, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_right(ui->Trip_frame, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_bottom(ui->Trip_frame, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_pad_left(ui->Trip_frame, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
	lv_obj_set_style_shadow_width(ui->Trip_frame, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

	//Update current screen layout.
	lv_obj_update_layout(ui->Trip);

	
	//Init events for screen.
	events_init_Trip(ui);
}
